added compatibility with objects as input paremeter

we'll then wrap said object as an array and try again.