Remove (declare (special ...))s and fix byte-compilation warnings

Very well. 7361786