Ex-FBI director James Comey has appeared in a court over charges relating to an Instagram post showing seashells arranged to form the numbers "86 47".