Extended loggable to use types for values

This should fix issue #986.