logstore.java: More typehints

Typehint the maps too, and the argument for lgs-messages too.

This, and the commits before, fix #12.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>