Introduce LearnerND and several bug fixes

See https://github.com/python-adaptive/adaptive/compare/v0.4.1...master