Fixed current_source_alias preixing.
Added tests for passing arrayref to order_by.