Tokens::fromCode - add caching to speedup - for #398 issue.

@keradus the issue is not about being in methods being inherited. The issue is being in a class which can be inherited. even in private method, using ``static::`` triggers LSB to do the static access.