Accept Long-like object in constructor, fixes #8