Ugly proof of concept for typedefinition like feature

This commit changesthe parse module to look into a dicitionary of
functions to apply types after the fact for code that doesn't use
type annotations.