enhance BuiltinFunction

toInt, toReal, toString, loadMatrix
did caching for loadMatrix in MatrixFactory

@cberzan  @lileicc