Add sample code and note to Method#hash and UnboundMethod#hash. refs #7151