Magnetostatic interactions between magnetic arrays and superconducting thin films