Update TransmissionRPC.class.php

moved rpc_version check before return_as_array inside the TransmissionRPC class constructor.
The program was attempting to obtain information from an object after it had been converted to a string.