doc: Remove waf leftover
doc: Document the new array get/set functions
autotools: Define NDEBUG for release builds

It disables assert(), which is only meant for debug builds.