Fix transform params swap error (Issue #777)

Also, Only swap params in b.transform() if the second param (t) is not already a string or function