metaContour: fix potential out-of-bounds array accesses
Merge pull request #2 from mathstuf/out-of-bounds-access

metaContour: fix potential out-of-bounds array accesses