added StdLibMath
code style
compile/runtime fixes
Merge branch '7395' into 7562-udf-java