add typechecking helpers for dictionary keypath support