Fix "/gate setmaterial" valid materials list

Fix implode function to handle HashMap keys rather than values