made code OSGi 4.2 compatible and allow Integers as configuration values

Signed-off-by: Kai Kreuzer <kai@openhab.org> (github: @kaikreuzer)