add backward-compatibility: convert "frames" to SkyCoords if needed