Query parameter API

Reading an unbound parameter via getParameterValue() now throws IllegalStateException (previously IllegalArgumentException or null); Parameter objects obtained from another query are rejected with IllegalArgumentException; getParameter(String, Class) now correctly accepts an exact or wider type (the positional variant getParameter(int, Class) still only accepts the exact type or a subtype). A parameter bound with TemporalType.DATE is converted to java.sql.Date (time of day dropped) instead of being passed through unchanged.

Catch IllegalStateException for unbound parameters and expect java.sql.Date semantics for DATE-typed parameters compared against TIMESTAMP columns.