[SPARK-2306]:BoundedPriorityQueue is private and not registered with Kryo