Improve properties reading

Solve https://github.com/numenta/nupic/issues/1102