Improved checking for numbers and undefined values at client side. Sample extended for enum types support. Tests supplemented.