A duality theoretic view on limits of finite structures: Extended version (Logical Methods in Computer Science, 2022)