Fix a bug in the frustum code
Fix a number of bugs that were shown up by unit tests failing, only one failing test remaining