Use objects instead of arrays to track computed dependencies.

Thanks to @coderenaissance and @farmdawgnation for their similar work.