Avoid undefined mis-aligned memory access

(assuming this shall always be little endian, given "Intel" in the function names)

Change-Id: Iff7e1305108dd0f8d9fae762c1f715e2e7b481b3
Fix memory leaks, by refcounting LwpObject

Change-Id: I1539597cd5bcabcbf0295d1acc320c503ad53604