Fixed #278: Compiler error: Index out of bounds