Improve the memory usage accounting:
- Take more allocated data into the consideration.
- Take into an account that there is always allocated a power of 2 bytes.

Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>