Handle ZendParamMode-style type coercion with nullable types

Bit hard to write tests for, as it needs a HNI __Native function, though it does get used by #1760