MAINT: fix some compiler warnings

implicit declarations, wrong declarations, unused variables and fixes a
comparison typo bug in multiarraymodule.c