This seems related
http://discourse.mcneel.com/t/rs-objectsbytype-incorrect-for-clipping-planes/14920/