Add support for single features (1D arrays) in OneHotEncoder

fixes #3662