Add size and getindex methods for GenData

Also, be more careful of the major and minor columns in the constructor.