Extended loggable to use types for values

This should fix issue #986.
please add the visibility