apedec: return meaningful error codes from ape_decode_init()