Add 'assoc' param

When $assoc param is true, returned objects will be converted into associative arrays.