Comparisons on shared pointers need .get() called

Refs #4042