GEOMESA-385 Annotate Return Type of defaultEncoder() Method

Allow Scala to assign to var previously allocated.
Also enabling encoding of byte arrays and fixing style