Enforce limits on calls to setCenter. Includes tests. Fixes #56