The spatial pooler should use the new Topology functions, which were refactored into their own data type. See PR #423. Also need to improve the docs for the new topology code.