Make parsing functions generically typed.

This is to aid in interactive and automated testing.