I'm calling that a mystery. I can't see any obvious issues with the code. I've used lots of type in type constructions that worked fine. My vector math routines shouldn't work if there was a problem with type nesting.
EDIT:
I tried 'n AS INTEGER' in the SUB declaration and it worked.
EDIT:
I tried 'n AS INTEGER' in the SUB declaration and it worked.
DO: LOOP: DO: LOOP
sha_na_na_na_na_na_na_na_na_na:
sha_na_na_na_na_na_na_na_na_na: