Make types work in placeholder parser

This requires the parser to take an option object.
I think this deserves a comment, hardwiring an option deep in the code seems odd.