optimize signals and array classes.

added disconnect member functions for signal class.
added remove member function for array class.