added testcase for 2746
improve exception when null is passed to the function getMetaData
solved ticket https://issues.jboss.org/browse/RAILO-2746 and added localmode info to getmetadata output from the object UDF
Merge remote-tracking branch 'origin/4.1' into 4.1