A man accused of hurling a homemade bomb into an Invasion Day rally in Perth has faced court for the first time.