fixed SimplyTypedSpace._validate_impl()'s dtype check