Added dtype check in SimplyTypedSPace._validate_impl