Simplifying reader functions
Merge into master from pull request #156:
Simplifying reader functions (https://github.com/floodlight/loxigen/pull/156)