Enhance record and recarray support

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

Should that go into resolve_data_type() instead?