Add type-specific parsers and some array rewrite rules
Check that there are still enough chunks to process