Fixed bug in generating caching-friendly method string signature.