Create private env when superclass contains only private methods. Fixes #24