Treated lumber will react with aluminium so I'm told. I've always used treated lumber covered with carpet and the trailer slick pads so I've never had a problem with my aluminum boats. Don't think it's an issue with glass boats. Just seems to me it last a lot longer before rotting.
I've wondered if the artificial lumber they make for decking would work, but never pursued it.