adding defensive template-level null checks when navigating context trees to find values
better handling of SimpleBoeleans with false as default