WIP: Fixes index typename for modules and framework.

Issue #4
Indices and size types are now all size_t.