Enhance record and recarray support

- Fix #712 alignment issues on GPU
- Handle dispatching of recarray type

Your editor has a tendancy to misindent comment lines, it seems (there's another instance further below).