add parser + tests for primitive data types.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>