improved type parser. TODO: better list/array typing