Addressing issue #5624. Implemented fix and added test case.

Updated toArray on Zend/Json/Server/Smd and Smd/Service to include the required attributes according to the SMD spec; Added test to show setOptions on toArray output appropriately configures Smd