code: @Nonnull
    public static String objectToJSString (@Nullable final Object aObject)
    {
      return objectToJSString (aObject, JSType.AUTO_DETECT, false);
    }
docs: Auto-detect the type of the passed object and convert it to a JS string. If
  the type detection failed, an {@link IllegalArgumentException} is thrown.
  
  @param aObject
  The object to be converted. May be <code>null</code>. Note: works
  for atomic types and arrays, but <b>not</b> for collection types!
  @return The string representation of the passed object.