fixed #54 : weak references are used in timer tasks to the wrapping
classes. Memory leak test added.