The fact that literals also get this same treatment would be a bug. You can use the distinct from predicate in you query.
select r from MyUser r where r.someProperty is not distinct from :parameter
which should render to = when ansinull is disabled.