ReadMethodGenerator: important performance improvement.

The method used performs better than the original SetValue call. The old
methods is still used for multidimensional arrays.
Merge branch 'master' of github.com:antmicro/Migrant