[SPARK-3592] [SQL] [PySpark] support applySchema to RDD of Row

Fix the issue when applySchema() to an RDD of Row.

Also add type mapping for BinaryType.
Row can be defined dynamically, so we can not use pyspark.sql.Row here.