Database: previously accessed columns cache is bound with stack trace

Moved from https://github.com/nette/nette/pull/1136