smalloc: check if object has external memory

Add API and tests to check if an Object has externally allocated memory.

Also fixed up a few other smalloc doc entries.