Use valueOf() method for primitive type fields too
Added a more detailed test for post form parsing
Added a notion of primitive types