The coercion is carefully chosen to accept (other than normal ints) instances of e.g. np.int64, but reject instances of e.g. float. See https://stackoverflow.com/a/48940855/254415 for details. Fixes #93.