Corrected the last of the hooks for cram_beliefstate to use `define-hook'
Fixed a bug that would always return `nil' when checking for IK validity