added a test for the to_matrix method of SynapticVariable
added the possibility of outputting a state matrix of synaptic values with to_matrix