fix minecart metadata crashing client/server.

Also add common metadata index for show/hiding the name.

Signed-off-by: Nick Minkler <sleaker@gmail.com>