flatten package:apecs

Turns a table-space vector into an integral index, given some table size vector. Yields Nothing for out-of-bounds queries
flatten, but yields garbage for out-of-bounds vectors.