Support white-space when parsing __type info

According to recomendation in #430 this is almost 1:1 merge of 5c0ac5fc35ec4791eac3bf71cca142557b80e734

FYI: @pavelsavara