[SPARK-1826] fix the head notation of package object dsl