WIP: Fix error returns up.
MERGE: include old bug fix lost in merge conflict
WIP: Free view correctly for fancy indexing
WIP: Speed improvements by using EXTERNAL_LOOP
WIP: Test fixups<