fix wrappers to primitives (#1298)
add check for isDebug system property DEBUG_AWS  (#1298)