Not really a library, it is a module though.
Add shape attribute position_bound, is bound on valid positions. Enables
more efficient checking in place_shape()
Fix checking so that negative indices are disallowed.