Implement getPropertiesSync and getPropertyKeysSync