bug fixes in 'ObjectValidator' in webapp/validator.coffee