Create tree field with pk in dims resource

This fixes the case where calls to cached methods would fail during cache key construction because the pk was missing.

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Merge pull request #243 from cbmi/issue-242

Create tree field with pk in dims resource