Better to specify exact size of avg array

Signed-off-by: Olli Vanhoja <olli.vanhoja@ninjaware.fi>
Merge branch 'vm_dev' of github.com:Ninjaware/zeke into vm_dev
Fixed errors in dev subsystem code.

Signed-off-by: Olli Vanhoja <olli.vanhoja@ninjaware.fi>