Fix for out of range exception and reduce code duplication

Fix for issue 109 on Google Code project
(http://code.google.com/p/itween/issues/detail?id=109). This was an
issue when finding tweens by type for either the count or stop
operation. There was also a lot of code duplication that was eliminated
as well.