fix Issue 10064 - opDollar called on garbage
fix Issue 10597 - opDollar not callable in static context
Merge pull request #2331 from 9rnsr/fix10064

Issue 10064 - opDollar called on garbage