Updated #timer to return both the duration and the result of the block.
Added utilities for counting objects in the ObjectSpace.