Add a manual implementation of `bind`, plus tests for same