implements inlined arrays as suggested on #1