Fix aliasing warnings on gcc4.4 in release mode.

It seem to be related to taking const & arguments for wrapped functions.
The const really offered nothing as it is cast away under the surface
by the wrappers anyway...
Refs #7607
Merge branch 'feature/7607_remove_v1_python_api' into develop