Fixed invalid keys used for storing long valued attributes.
Fixed invalid evaluation routine for timestamps.
Added min and max number to amount factory.
Fixed useless check.