rt: take into account alignment for debug_opaque. Closes #2667