Tested & fixed: Elements containing "0" were considered empty
Fixes #2: Handle significant whitespace when learing simple types