Ensure spatial is dict before applying coords