Pass options object into scanner

This is tested by making sure that the options used by the
PlaceholderParser are propagated to the scanner.
We already have this limitation...