[SPARK-4397] Move object RDD to the front of RDD.scala.

I ran into multiple cases that SBT/Scala compiler was confused by the implicits in continuous compilation mode.
Moving them to the beginning of the file seemed to have fixed the problem.

cc @zsxwing
you didn't preserve the indentation down there. was this on purpose?