Add keep_attrs to reduction methods

fixes #138