enhance BuiltinFunction

enhanced toInt, toReal, toString, loadMatrix
1. add toString
2. for toInt and toReal, allow distinct object and timestep as input
3. for loadMatrix: did caching for loadMatrix in MatrixFactory

@cberzan  @lileicc 
would direct access to element be faster?