Add missing include for exception type.

Refs #8996
Fix type for map insertion in TypeRegistry

Refs #8996
Fix Python function tests.

They were calling getProperty().value on a non-child algorithm where the
internal workspace pointer is null.
Refs #8996