Add support for AtomicInt, AtomicLong and Objects

Fix #21 and Fix #25