Make digattr behave more like template lookups [Fixes #44]